<template>
  <div class="tarbar-container">
      <!-- 子路由占位符 -->
      <router-view/>
    <!-- 导航栏 -->
    <van-tabbar v-model="active" border>
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
<style lang="less" scoped>
  
</style>